<!--
 * @Description: 
 * @Author: mxy
 * @Date: 2022-11-08 21:21:55
 * @LastEditors: mxy
 * @LastEditTime: 2022-11-08 21:25:53
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="./axios.js"></script>
    <script>
        axios({
            method: 'put',
            url: 'http://www.itcbc.com:3006/api/updatebook',
            data: {
                id: 582,
                bookname: '朝花夕拾',
                author: '鲁迅',
                publisher: '北京',
                appkey: 'xiaomeng',

            }
        }).then(({ data }) => {
            console.log(data);
        })

        axios({
            method: 'get',
            url: 'http://www.itcbc.com:3006/api/getbooks',
            params: {
                appkey: 'xiaomeng'
            }
        }).then(({ data }) => {
            console.log(data);
        })
    </script>
</body>

</html>